﻿
using Volo.Abp.DependencyInjection;

namespace AbpVnext_Module
{
    /// <summary>
    /// 特性注入
    /// </summary>
    [Dependency(ServiceLifetime.Transient)]
    public class DemoService : IDemoService  //,ISingletonDependency 接口注入 
    {
        public void Consolo()
        {
            Console.WriteLine("测试autofac");
        }
    }
}
